<?php

namespace app\modules\v1\models;

use Yii;

/**
 * This is the model class for table "{{%_usermoney}}".
 *
 * @property integer $id
 * @property string $telephone
 * @property double $money
 */
class Usermoney extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return '{{%_usermoney}}';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['telephone', 'money'], 'required'],
            [['money'], 'integer', 'message' => 403],
            [['telephone'], 'string', 'length' => [11,11], 'tooShort' => 403, 'tooLong' => 403],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'telephone' => 'Telephone',
            'money' => 'Money',
        ];
    }
}
